package com.xyy.saas.payment.dao.mapper;

import com.xyy.saas.payment.dao.model.PrePayOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface PrePayOrderMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PrePayOrder record);

    int insertSelective(PrePayOrder record);

    PrePayOrder selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PrePayOrder record);

    int updateByPrimaryKey(PrePayOrder record);

    List<PrePayOrder> selectByBusinessOrderNo(String businessOrderNo);

    List<PrePayOrder> likeByBusinessOrderNo(@Param("businessOrderType") String businessOrderType, @Param("businessOrderNo") String businessOrderNo);

    List<PrePayOrder> listByBusinessOrderNo(List<String> businessOrderNos);

    List<PrePayOrder> getPrePayOrderByPayNos(List<String> payNos);

    PrePayOrder getPrePayOrderByPayNo(String payNo);

    List<PrePayOrder> selectByContractCode(String contractCode);
}